<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="UTF-8">
	<title>{$name}┊{$site_name}</title>
    <meta http-equiv="Content-Language" content="ar-AE">
    <meta name="author" content="Powerless"> 
    <meta name="Copyright" content="{$site_seo_title}">
	<meta name="keywords" content="{$site_seo_keywords}" />
	<meta name="description" content="{$site_seo_description}">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="__TMPL__Public/style/base.css"/>
    <link rel="stylesheet" type="text/css" href="__TMPL__Public/style/science.css"/>
	<link rel="icon" href="__TMPL__Public/images/favicon.ico" type="image/ico">
    <script type="text/javascript" src="__TMPL__Public/js/jquery.js"></script>
	<script type="text/javascript" src="__TMPL__Public/js/AutoChangePhoto.js"></script>
        <script type="text/javascript" language="javascript">  
        function nofind(){
        var img=event.srcElement;
        img.src="__TMPL__Public/images/no-img.jpg";
        img.onerror=null; 
        }
        </script>
</head>

<body>
<div class="navbg">
    <div class="nav  wrapper">
        <ul>
            <li><a href="{:u('list/index',array('id'=>191))}">دعم</a></li>
            <li class="spe">|</li>
            <li><a href="{:u('list/index',array('id'=>192))}">شراء</a></li>
            <li class="spe">|</li>
            <li><a href="{:u('list/index',array('id'=>193))}">مناقصات</a></li>
            <li class="spe">|</li>
            <li><a href="{:u('list/index',array('id'=>194))}">توكيلات</a></li>
            <li class="spe">|</li>
            <li><a href="http://ar.ibtv.cc/"> العودة  </a></li>
        </ul>
        </div>
    </div>
</div>
<div class="m1 wrapper">
	<div class="m1l">
    	<div class="banner">
<TABLE id=pictable style="DISPLAY: none">
  <TBODY>
  <php>
            $calligraphy_all=sp_sql_posts('cid:191,192,193,194;field:tid,post_title,smeta;limit:7;order:post_date desc');
            </php>
            <foreach name="calligraphy_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php> 
    <TR>
    <TD><img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" border=0 width="403" height="265"></TD>
    <TD>{$all.post_title}</TD>
    <TD>{:U('article/index',array('id'=>$all['tid']))}</TD>
    </TR>
            </foreach>

</TBODY></TABLE>

<DIV class=div_xixi>
<SCRIPT language=javascript type=text/javascript>
<!--
                var picarry = {};
                var lnkarry = {};
                var ttlarry = {};
                  function FixCode(str){
                    return str.replace("'","=");
                  }
                  var t=document.getElementById("pictable");
                  var rl=t.rows.length;
                  var baseu=  document.URL.replace(/(http.*\/)(.*)/, "$1"); 
                  if(baseu.indexOf("/servlet/")>=0)
                  baseu = baseu.replace("/servlet/","/");

                  var txt="";
                  for(var i=0;i<rl;i++){
                    try{
                        picarry[i]=t.rows[i].cells[0].childNodes[0].src;
                        lnkarry[i]=t.rows[i].cells[2].innerHTML;
                        ttlarry[i]=FixCode(t.rows[i].cells[1].innerHTML);
                        document.getElementById("li_jimg"+i).innerHTML = '<a href="'+lnkarry[id]+'"  class="img"><img onerror="nofind();"src="'+picarry[id]+'" alt=""><\/a>';
                        alert(picarry[i]);
                    }catch(e){
        
                    }
                }             
                    document.write("<div class='div_jimg\'><a class='a_jimg' id='a_jimg' href='"+lnkarry[0]+"' title='' style='background:url("+picarry[1]+")' ><img onerror='nofind();' id='bigimg' style='filter:RevealTrans (duration='1',transition='23'); visibility:visible;' alt='' src='"+picarry[0]+"'><\/a><ul class='ul_jimg'><li class='li_jimg on' id='li_jimg0' onmouseover='setfoc(0)' onmouseout='playit()'><a href='"+lnkarry[0]+"' class='img'>"+ttlarry[0]+"<\/a><\/li><li class='li_jimg' id='li_jimg1' onmouseover='setfoc(1)' onmouseout='playit()'><a href='"+lnkarry[1]+"' class='img'>"+ttlarry[1]+"<\/a><\/li><li class='li_jimg' id='li_jimg2' onmouseover='setfoc(2)' onmouseout='playit()'><a href='"+lnkarry[2]+"' class='img'>"+ttlarry[2]+"<\/a><\/li><li class='li_jimg' id='li_jimg3' onmouseover='setfoc(3)' onmouseout='playit()'><a href='"+lnkarry[3]+"' class='img'>"+ttlarry[3]+"<\/a><\/li><li class='li_jimg' id='li_jimg4' onmouseover='setfoc(4)' onmouseout='playit()'><a href='"+lnkarry[4]+"' class='img'>"+ttlarry[4]+"<\/a><\/li><li class='li_jimg' id='li_jimg5' onmouseover='setfoc(5)' onmouseout='playit()'><a href='"+lnkarry[5]+"' class='img'>"+ttlarry[5]+"<\/a><\/li><li class='li_jimg' id='li_jimg6' onmouseover='setfoc(6)' onmouseout='playit()'><a href='"+lnkarry[6]+"' class='img'>"+ttlarry[6]+"<\/a><\/li><\/ul><\/div>");
-->
</SCRIPT>
</DIV>
        </div>
        <div class="m1lone">
        	<div class="m1lonel">
                <ul>
                    <li><a href="#" style="background:#e5e5e5;" id="a1" onmouseover="tab(1)">مقابلة</a></li>
                    <li><a href="#" onmouseover="tab(2)" id="a2">التقدير</a></li>
                </ul>
            	<div class="m1lonelmain" id="div1">
            <php>
            $interview_all=sp_sql_posts('cid:191;field:tid,post_title,post_excerpt,smeta;limit:3;order:post_date desc');
            </php>
            <foreach name="interview_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>                    
            <dl>
            	<dt><a href="{:U('article/index',array('id'=>$all['tid']))}">
                <img onerror="nofind();"src="{$site_host}data/upload/{$smeta.thumb}" width="163" height="112"/></a></dt>
                <dd class="dd1"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
                <dd class="dd2"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_excerpt}</a></dd>
            </dl>
            </foreach>
                </div>
            	<div class="m1lonelmain" id="div2">
            <php>
            $appreciation_all=sp_sql_posts('cid:191;field:tid,post_title,post_excerpt,smeta;limit:3,3;order:post_date desc');
            </php>
            <foreach name="appreciation_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>                    
            <dl>
            	<dt><a href="{:U('article/index',array('id'=>$all['tid']))}">
                <img onerror="nofind();"src="{$site_host}data/upload/{$smeta.thumb}" width="163" height="112"/></a></dt>
                <dd class="dd1"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
                <dd class="dd2"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_excerpt}</a></dd>
            </dl>
            </foreach>
                </div>
            </div>
            <div class="m1loner">
            	<div class="m1lonertit">شراء</div>
            	<div class="m1lonermain">
            <php>
            $collect_all=sp_sql_posts('cid:192;field:tid,post_title,smeta;limit:2;order:post_date desc');
            </php>
            <foreach name="collect_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>                    
            <dl>
            	<dt><a href="{:U('article/index',array('id'=>$all['tid']))}">
                <img onerror="nofind();"src="{$site_host}data/upload/{$smeta.thumb}" width="148" height="148"/></a></dt>
                <dd><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
            </dl>
            </foreach>
                </div>
            </div>
        </div>
        <div class="m1ltwo">
         	<php>
            $gallery_all=sp_sql_posts('cid:192;field:tid,post_title,post_excerpt,smeta;limit:2,2;order:post_date desc');
            </php>
            <foreach name="gallery_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>
            <div class="m1ltwol">
                <dl>
                    <dt><a href="{:U('article/index',array('id'=>$all['tid']))}">
                    <img onerror="nofind();"src="{$site_host}data/upload/{$smeta.thumb}" width="331" height="187"/></a></dt>
                    <dd class="dd1"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
                    <dd class="dd2"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_excerpt}</a></dd>            
                </dl>
            </div>
            </foreach>
        </div>
        <div class="m1lthree">
        
		<php>
            $science_l=sp_getslide('science_l');
        </php>
        <foreach name="science_l" item="l"><php>break;</php></foreach>
        <img  onerror="nofind();" src="{$site_host}data/upload/{$l.slide_pic}" alt="{$l.slide_name}" width="681" height="100" />
        </div>
        <div class="m1lfour">
        	<php>
            $auction_all=sp_sql_posts('cid:193;field:tid,post_title,post_date,post_excerpt,smeta;limit:5;order:post_date desc');
            </php>
            <foreach name="auction_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>
                <div class="m1lfourmain">
                <div class="m1lfourl"><a href="{:U('article/index',array('id'=>$all['tid']))}">
                    <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="201" height="182"/></a></div>
                <div class="m1lfourr">
                    <div class="m1lfourr1"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></div>
                    <div class="m1lfourr2">{$all.post_date}</div>
                    <div class="m1lfourr3">{$all.post_excerpt}</div>
                    <div class="m1lfourr4"><a href="{:U('article/index',array('id'=>$all['tid']))}">Read more</a></div>
                </div>
            </div>
            </foreach>
        </div>
    </div>
    <div class="m1r">
    	<div class="m1r1">
        	<div class="m1r1tit">مناقصات</div>
            <ul>
            <php>
            $recommendations_all=sp_sql_posts('cid:193;field:tid,post_title;limit:5,5;order:post_date desc');
            </php>
            <foreach name="recommendations_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>
               	<li><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></li>
            </foreach>
            </ul>
        </div>
        <div class="m1r2">
		<php>
            $science_rt=sp_getslide('science_rt');
        </php>
        <foreach name="science_rt" item="rt"><php>break;</php></foreach>
        <img  onerror="nofind();" src="{$site_host}data/upload/{$rt.slide_pic}" alt="{$rt.slide_name}" width="269" height="347" />
        </div>
        <div class="m1r3">
        	<php>
            $mm_all=sp_sql_posts('cid:194;field:tid,post_title,post_excerpt,smeta;limit:8;order:post_date desc');
            </php>
            <foreach name="mm_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>
            <div class="m1r3m">
            	<div class="m1r3mtit">{$all.post_title}</div>
                <dl>
                	<dt><a href="{:U('article/index',array('id'=>$all['tid']))}">
                    <img onerror="nofind();"src="{$site_host}data/upload/{$smeta.thumb}" width="80" height="70"/></a></dt>
                    <dd><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_excerpt}</a></dd>
                </dl>
            </div>
            </foreach>
        </div>
        <div class="m1r4">
        	<div class="m1r4tit">توكيلات</div>
            <div class="m1r41">
           	<!-- <div class="m1r41tit">Helath</div>--> 
               <ul>
               <php>
            $ms_all=sp_sql_posts('cid:194;field:tid,post_title;limit:8,6;order:post_date desc');
            </php>
            <foreach name="ms_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>
               	<li><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></li>
            </foreach>
                </ul>
            </div>
            <div class="m1r42">
		<php>
            $science_rd=sp_getslide('science_rd');
        </php>
        <foreach name="science_rd" item="rd"><php>break;</php></foreach>
        <img  onerror="nofind();" src="{$site_host}data/upload/{$rd.slide_pic}" alt="{$rd.slide_name}" width="269" height="225" /></div>
        </div>
    </div>
</div>
<div class="m2 wrapper">
    <php>
    $py_all=sp_sql_posts('cid:191,192;field:tid,post_title,post_excerpt,smeta;limit:4;order:post_date desc');
    </php>
    <foreach name="py_all" item="all">
        <php>
        $smeta=json_decode($all['smeta'],true);
        </php>
    <div class="m2m">
        <dl>
            <dt><a href="#2"><img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="221" height="124"/></a></dt>
            <dd class="dd1">{$all.post_title}</dd>
            <dd class="dd2"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_excerpt}</a></dd>
        </dl>
    </div>
    </foreach>
</div>
<div class="m5lsecond wrapper">
    <div class="m5lsecond1">
    		<php>
            $mmm_all=sp_sql_posts('cid:191,192;field:tid,post_title,post_excerpt,smeta;limit:4,1;order:post_date desc');
            </php>
            <foreach name="mmm_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>
            <DL>
                <Dt><img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}"  width="369" height="245"/></Dt>
                <dd><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
            </DL>
            </foreach>
    </div>
    <div class="m5lsecond2">
    
    		<php>
            $hpy_all=sp_sql_posts('cid:193,194;field:tid,post_title,post_excerpt,smeta;limit:6;order:post_date desc');
            </php>
            <foreach name="hpy_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>
            <DL>
                <Dt><img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}"  width="369" height="245"/></Dt>
                <dd><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
            </DL>
            </foreach>
    </div>
</div>

  <include file="Public:footer" />

        <script language="javascript">
function tab(x){
	for(i=1;i<3;i++){
		document.getElementById("div"+i).style.display="none"
		document.getElementById("a"+i).style.background="#fff"
		}
	document.getElementById("div"+x).style.display="block"
	document.getElementById("a"+x).style.background="#e5e5e5"
	}

</script>
</body>
</html>
